<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet version="2.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:fn="http://www.w3.org/2005/xpath-functions"
	xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
	xmlns:err="http://www.w3.org/2005/xqt-errors"
	exclude-result-prefixes="xs xdt err fn">

	<xsl:output method="xml" indent="yes"/>
		
	<xsl:template match="/">
	<rss version="2.0" xmlns:mc="http://localhost:54805/WebService1.asmx/productXMLtoRSSXML">
	<channel>		
         <title>Calorien per product</title>
 		 <link>http://localhost:54805/Producten.aspx</link>
 		 <description>Aantal calorien per product</description>
		      <xsl:for-each select="ProductCalorien/Product">
		      <item>
			      <title>
			      	<xsl:value-of select="Naam" />
			      </title>
			      <link>
                      http://localhost:54805/Producten.aspx?productnr=<xsl:value-of select="id" />
			      </link>
			      <description>
			      	Een <xsl:value-of select="Naam" /> bevat <xsl:value-of select="Calorien" /> Calorien
			      </description>			    
		      </item>
		      </xsl:for-each>		   
	</channel>
	</rss>		
	</xsl:template>

</xsl:stylesheet>

